//
//  T3FMapViewFlutterPlugin.swift
//  t3_map
//
//  Created by Cunhai Li on 2024/10/23.
//

import UIKit
import Flutter

class T3FMapViewPlatformViewFactory<Registrar: FlutterPluginRegistrar>: NSObject, FlutterPlatformViewFactory {

    let registrar: Registrar

    init(registrar: Registrar) {
        self.registrar = registrar
    }

    func create(withFrame frame: CGRect, viewIdentifier viewId: Int64, arguments args: Any?) -> any FlutterPlatformView {

        return T3FMapPlatformView(frame: frame, viewId: viewId, params: args, registrar: registrar)
    }

    func createArgsCodec() -> any FlutterMessageCodec & NSObjectProtocol {
        return FlutterStandardMessageCodec.sharedInstance()
    }
}

